awesome-forms.js ➔ $   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 14
rs 9.4285
nc 1
nop 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A awesome-forms.js ➔ ... ➔ $(ꞌ.awesome-form .label-group inputꞌ).focusout 0 10 2
1
$(function(){
2
3
  $('.awesome-form .label-group input').focusout(function(){
4
    var text_value = $(this).val();
5
6
    if(text_value === ""){
7
      $(this).removeClass('has-value');
8
    }else{
9
      $(this).addClass('has-value');
10
    }
11
12
  });
13
14
});
15